package com.java.androidmarket.dao;

import com.java.androidmarket.dto.order.GetOrderDTO;
import com.java.androidmarket.entity.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * description:
 * author:张腾
 * date:2021-05-15
 */

@Mapper
public interface OrderDao {

    int addOrder(Order order);

    void changeStatus(Order order);

    List<GetOrderDTO> getAllOrder(int userId);

    GetOrderDTO getOneOrder(String orderSn);

    List<GetOrderDTO> getOrderByStatus(Order order);

    List<Map<String,Integer>> getOrderNum(int userId);

    void deleteOrder(String orderSn);

    int getOrderID(String orderSn);

    int getUserID(String orderSn);
}
